<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script src="d3.js"></script>
    <script>
        const svg = d3.select('body').append('svg');
        svg.attr('width',800);
        svg.attr('height',600);
        svg.style('border','2px solid #ccc');
        
        
        const symbol = d3.symbol(d3.symbolTriangle2).size(10000);

        svg.append('g')
            .attr('transform','translate(400,300)')
            .append('path')
            .attr('d',symbol())
            .attr('fill','#fac')
            .attr('stroke','#666')


        

    </script>
</body>
</html>